package com.example.lib;

public class AppConfig {
    public static final String APP_NAME = "android_learn";
    public static final String APP_VERSION = "1.0";
    public static final String DATABASE_URL = "mysql://localhost:3306/myDatabase";

    public static void main(String[] args) {
        System.out.println("Application name: " + AppConfig.APP_NAME);
        System.out.println("Application version: " + AppConfig.APP_VERSION);
        System.out.println("Application url: " + AppConfig.DATABASE_URL);
    }
}

class Counter {
    private static int count = 0;

    public Counter() {
        count++;
    }

    public static int getCount() {
        return  count;
    }

    public static void main(String[] args) {
        Counter c1 = new Counter();
        Counter c2 = new Counter();
        Counter c3 = new Counter();
        System.out.println("目前为止创建的对象数量：" + Counter.getCount());
    }
}
